package com.yunshang.shoppingmall.service.Finace.impl;

import com.yunshang.shoppingmall.entity.FinaceTotal;
import com.yunshang.shoppingmall.mapper.FinaceTotalMapper;
import com.yunshang.shoppingmall.service.Finace.FinaceTotalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("finaceTotalService")
public class FinaceTotalServiceImpl implements FinaceTotalService {

    @Autowired
    FinaceTotalMapper finaceTotalMapper;

    @Override
    public int deleteByPrimaryKey(Integer fId) {
        return 0;
    }

    @Override
    public int insert(FinaceTotal record) {
        return 0;
    }

    @Override
    public int insertSelective(FinaceTotal record) {
        return finaceTotalMapper.insertSelective(record);
    }

    @Override
    public FinaceTotal selectByPrimaryKey(Integer fId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(FinaceTotal record) {
        return finaceTotalMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FinaceTotal record) {
        return finaceTotalMapper.updateByPrimaryKey(record);
    }

    @Override
    public FinaceTotal selectFinaceBalace(FinaceTotal finaceTotal) {
        return finaceTotalMapper.selectFinaceBalace(finaceTotal);
    }

    @Override
    public FinaceTotal selectFinaceTotal(int userNoId,String fType) {
        return finaceTotalMapper.selectFinaceTotal(userNoId,fType);
    }

    @Override
    public int updateBalanceByUserIdAndFType(FinaceTotal finaceTotal) {
        return finaceTotalMapper.updateBalanceByUserIdAndFType(finaceTotal);
    }

    @Override
    public FinaceTotal selectFinaceBalaceAll(int userNoId) {
        return finaceTotalMapper.selectFinaceBalaceAll(userNoId);
    }
}
